package sunwin.yoms.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by mt on 2015/7/26.
 * 对应codesmith1.0.0
 */
public interface DaoBase<T> {
    int addDomain(T domain);
    int deleteDomain(T domain);
    int updateDomain(T domain);
    int getDomainCount();
    T getDomainById(int id);

    List<T> getDomainByConditionOfSingleTable(@Param("domain") T domain);
    List<T> getDomainCollectionOfSingleTable(@Param("domain") T domain);

    List<T> getDomainByCondition(@Param("domain") T domain);
    List<T> getDomainCollection(@Param("domain") T domain);
}
